/*
 * ClientListener.h
 *
 *  Created on: May 25, 2011
 *      Author: madboyka
 */
#ifndef CLIENTLISTENER_H_
#define CLIENTLISTENER_H_
#include <QThread>
#include "Server.h"
#include "ClientProtocol.h"

class Server;

/*!
 * Listener thread that, waits for incoming client connections and passes them to the Server.
 */
class ClientListener : public QThread {
public:
	ClientListener(Server*);
	virtual ~ClientListener();
	void run();
private:
	Server *server;
	ClientProtocol *protocol;
};

#endif /* CLIENTLISTENER_H_ */
